﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020005C5 RID: 1477
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class FirstNpcTalkInfo : IMessage<FirstNpcTalkInfo>, IMessage, IEquatable<FirstNpcTalkInfo>, IDeepCloneable<FirstNpcTalkInfo>, IBufferMessage
	{
		// Token: 0x170012E8 RID: 4840
		// (get) Token: 0x06004266 RID: 16998 RVA: 0x000B530C File Offset: 0x000B350C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<FirstNpcTalkInfo> Parser
		{
			get
			{
				return FirstNpcTalkInfo._parser;
			}
		}

		// Token: 0x170012E9 RID: 4841
		// (get) Token: 0x06004267 RID: 16999 RVA: 0x000B5313 File Offset: 0x000B3513
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return FirstNpcTalkInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170012EA RID: 4842
		// (get) Token: 0x06004268 RID: 17000 RVA: 0x000B5325 File Offset: 0x000B3525
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return FirstNpcTalkInfo.Descriptor;
			}
		}

		// Token: 0x06004269 RID: 17001 RVA: 0x000B532C File Offset: 0x000B352C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FirstNpcTalkInfo()
		{
		}

		// Token: 0x0600426A RID: 17002 RVA: 0x000B5334 File Offset: 0x000B3534
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FirstNpcTalkInfo(FirstNpcTalkInfo other) : this()
		{
			this.isMeet_ = other.isMeet_;
			this.npcId_ = other.npcId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600426B RID: 17003 RVA: 0x000B5365 File Offset: 0x000B3565
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FirstNpcTalkInfo Clone()
		{
			return new FirstNpcTalkInfo(this);
		}

		// Token: 0x170012EB RID: 4843
		// (get) Token: 0x0600426C RID: 17004 RVA: 0x000B536D File Offset: 0x000B356D
		// (set) Token: 0x0600426D RID: 17005 RVA: 0x000B5375 File Offset: 0x000B3575
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool IsMeet
		{
			get
			{
				return this.isMeet_;
			}
			set
			{
				this.isMeet_ = value;
			}
		}

		// Token: 0x170012EC RID: 4844
		// (get) Token: 0x0600426E RID: 17006 RVA: 0x000B537E File Offset: 0x000B357E
		// (set) Token: 0x0600426F RID: 17007 RVA: 0x000B5386 File Offset: 0x000B3586
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint NpcId
		{
			get
			{
				return this.npcId_;
			}
			set
			{
				this.npcId_ = value;
			}
		}

		// Token: 0x06004270 RID: 17008 RVA: 0x000B538F File Offset: 0x000B358F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as FirstNpcTalkInfo);
		}

		// Token: 0x06004271 RID: 17009 RVA: 0x000B539D File Offset: 0x000B359D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(FirstNpcTalkInfo other)
		{
			return other != null && (other == this || (this.IsMeet == other.IsMeet && this.NpcId == other.NpcId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06004272 RID: 17010 RVA: 0x000B53DC File Offset: 0x000B35DC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.IsMeet)
			{
				num ^= this.IsMeet.GetHashCode();
			}
			if (this.NpcId != 0U)
			{
				num ^= this.NpcId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06004273 RID: 17011 RVA: 0x000B5434 File Offset: 0x000B3634
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06004274 RID: 17012 RVA: 0x000B543C File Offset: 0x000B363C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06004275 RID: 17013 RVA: 0x000B5448 File Offset: 0x000B3648
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.IsMeet)
			{
				output.WriteRawTag(16);
				output.WriteBool(this.IsMeet);
			}
			if (this.NpcId != 0U)
			{
				output.WriteRawTag(112);
				output.WriteUInt32(this.NpcId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06004276 RID: 17014 RVA: 0x000B54A4 File Offset: 0x000B36A4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.IsMeet)
			{
				num += 2;
			}
			if (this.NpcId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.NpcId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06004277 RID: 17015 RVA: 0x000B54F0 File Offset: 0x000B36F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(FirstNpcTalkInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.IsMeet)
			{
				this.IsMeet = other.IsMeet;
			}
			if (other.NpcId != 0U)
			{
				this.NpcId = other.NpcId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06004278 RID: 17016 RVA: 0x000B5540 File Offset: 0x000B3740
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06004279 RID: 17017 RVA: 0x000B554C File Offset: 0x000B374C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 16U)
				{
					if (num != 112U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.NpcId = input.ReadUInt32();
					}
				}
				else
				{
					this.IsMeet = input.ReadBool();
				}
			}
		}

		// Token: 0x04001A0B RID: 6667
		private static readonly MessageParser<FirstNpcTalkInfo> _parser = new MessageParser<FirstNpcTalkInfo>(() => new FirstNpcTalkInfo());

		// Token: 0x04001A0C RID: 6668
		private UnknownFieldSet _unknownFields;

		// Token: 0x04001A0D RID: 6669
		public const int IsMeetFieldNumber = 2;

		// Token: 0x04001A0E RID: 6670
		private bool isMeet_;

		// Token: 0x04001A0F RID: 6671
		public const int NpcIdFieldNumber = 14;

		// Token: 0x04001A10 RID: 6672
		private uint npcId_;
	}
}
